import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.core.io.ClassPathResource;

import app.gastos.rubro.dao.RubroDao;


public class Testing {

    /**
     * @param args
     */
    public static void main(String[] args) {
	
	        GenericApplicationContext context = new GenericApplicationContext();
	        XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader(context);
	        System.out.println(System.getProperty("user.dir"));
	        xmlReader.loadBeanDefinitions(new ClassPathResource("WebContent/WEB-INF/applicationContext.xml"));
	        
	        context.refresh();
	        RubroDao rubroDao = (RubroDao)context.getBean("rubroDao");
	        rubroDao.getList();
	

    }

}
